﻿@namespace Masa.Docs.Shared.Components
@inject I18n I18n

<MTabs Class="default-tabs fixed-slider"
       Style="display: contents;"
       Routable>
    @foreach (var item in AppService.GetNavMenus(Project))
    {
        <MTab Ripple="false" Class="text-none secondary-emphasis-text"
              Href="@item.URL"
              Target="@item.Target">
            <MBadge Color="red" Content="@I18n.T(item.Badge)" Value="@(!string.IsNullOrWhiteSpace(item.Badge))">
                @I18n.T(item.Title)
            </MBadge>
        </MTab>
    }
</MTabs>

@code {

    [CascadingParameter(Name = "Culture")]
    public string? Culture { get; set; } = null!;

    [CascadingParameter(Name = "project")]
    public string? Project { get; set; }

}
